﻿using _047_AbstractFactorySample;
using static System.Console;

// 抽象工厂模式

// 创建美式口味工厂
RelishFactory relishFactory = new AmericanRelishFactory();
Coffee coffee = relishFactory.GetCoffee();
coffee.GetName();
Dessert dessert = relishFactory.GetDessert();
dessert.GetName();


// 创建中式口味工厂
relishFactory = new ChineseRelishFactory();
coffee = relishFactory.GetCoffee();
coffee.GetName();
dessert = relishFactory.GetDessert();
dessert.GetName();


ReadLine();